Adwaita: be careful with list separators
authorMatthias Clasen <mclasen@redhat.com>
Sun, 9 Aug 2020 16:01:08 +0000 (12:01 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 9 Aug 2020 16:01:08 +0000 (12:01 -0400)
We only want the list .separators class to affect its
immediate children - otherwise, we end up with separators
in dropdowns that are places into button strips. As a side
benefit, restricting this to immediate children makes for
faster matching.

gtk/theme/Adwaita/_common.scss

index c453733828971db2902f4b15e601ed69ed65d53e..deeaed97f9d75407ce797e076ca810f96121ad76 100644 (file)
@@ -3078,11 +3078,11 @@ list {
   > row.expander .row-header { padding: 2px; }
 
   &.horizontal row.separator:not(:first-child),
-  &.separators.horizontal row:not(:first-child) {
+  &.separators.horizontal row:not(:first-child) {
     border-left: 1px solid $borders_color;
   }
   &:not(.horizontal) row.separator:not(:first-child),
-  &.separators:not(.horizontal) row:not(:first-child) {
+  &.separators:not(.horizontal) row:not(:first-child) {
     border-top: 1px solid $borders_color;
   }
 }